package com.bw.shopping.mvvm.view;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.blankj.utilcode.util.BarUtils;
import com.bw.mvvm_common.filed.UIField;
import com.bw.mvvm_common.mvvm.view.BaseActivity;
import com.bw.mvvm_common.mvvm.viewmodel.BaseViewModel;
import com.bw.shopping.BR;
import com.bw.shopping.R;
import com.bw.shopping.databinding.ActivityCommodityBinding;
import com.bw.shopping.mvvm.viewmodel.CommodityViewModel;

@Route(path = "/kkshoping/CommodityActivity")
public class CommodityActivity extends BaseActivity<ActivityCommodityBinding, CommodityViewModel> {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        BarUtils.transparentStatusBar(this);
        BarUtils.setStatusBarLightMode(this,true);

        Bundle bundleExtra = getIntent().getBundleExtra(UIField.PAGEBUNDLE);
        int shopId = bundleExtra.getInt("shopId");
        vm.bundle(shopId);
    }

    @Override
    public int bindLayout() {
        return R.layout.activity_commodity;
    }

    @Override
    public int initVerable() {
        return BR.vm;
    }
}